<template>
  <div class="title">
    <label>{{title || ''}}</label>
    <slot></slot>
    <el-button size="mini" type="text" @click="handleViewMore">查看更多</el-button>
  </div>
</template>

<script>
export default {
  props: {
    title: String
  },
  methods: {
    handleViewMore () {
      this.$emit('click-more')
    }
  }
}
</script>

<style lang='scss' scoped>
.title {
  display: flex;
  justify-content: space-between;
  label {
    font-size: 18px;
    font-weight: 600;
  }
}
</style>
